package com.jt.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;

import java.io.Serializable;

/**
 * @author dc
 * @Classname Item
 * @Date 2020/3/27 13:06
 */
@Data
@JsonIgnoreProperties(ignoreUnknown=true)
public class SearchItem implements Serializable {
    private static final long serialVersionUID = -9014712700803623168L;
    @Field("id")
    private String id;
    @Field("title")
    private String title;
    @Field("sellPoint")
    private String sellPoint;
    @Field("price")
    private Long price;
    @Field("image")
    private String image;

    /**为了满足页面调用需求,添加get方法*/
    public String[] getImages(){
        return image.split(",");
    }
}
